<?php

namespace Controller\Dog;

abstract class Base extends \Controller\Base {

	public function getUserDetailInfo($userId) {
		$userInfo = \Business\User::instance()->getUserDetailInfo($userId);
		$isFollow = false;
		if ($this->currentUserInfo && ($myUserId = $this->currentUserInfo['UserId']) && $userInfo) {
			$isFollow = \Business\User::instance()->isFollow($myUserId, $userId);
		}
		$fansNumber = \Business\User::instance()->getUserFansNumber($userId);
		$this->assign('fansNumber',$fansNumber);
		$this->assign('isFollow',$isFollow);
		$this->assign('userInfo', $userInfo);
		return $userInfo;
	}
}